public class demo5 {
    public static void main(String[] args) {
        Thread t1 = new Thread(){
            @Override
            public void run() {
                super.run();
                this.setName("Read_");
                System.out.println(this.getName() + "--看书");
            }
        };

        Thread t2 = new Thread(new Runnable() {
            @Override
            public void run() {
                Thread.currentThread().setName("Music_");
                System.out.println(Thread.currentThread().getName() + "--听歌");
            }
        });
        t1.start();
        t2.start();
    }
}

